package com.asen.commons.core.base.service;

import com.asen.commons.core.base.domain.TreeBase;
import com.asen.commons.core.meta.dao.Condition;

import java.util.List;

/**
 * 树型service接口
 *
 * @author Gary
 * @version 1.0
 * @date 2018-12-10
 */
public interface TreeBaseService<T extends TreeBase> extends BaseDataService<T> {

    /**
     * 查询当前节点及其所有下级节点的数据
     *
     * @param condition
     * @param nodeId
     * @return
     * @throws Exception
     */
    List<T> treeList(Condition condition, Integer nodeId) throws Exception;

}
